\hypertarget{udp__ip_8c}{\section{udp\-\_\-ip.\-c \-File \-Reference}
\label{udp__ip_8c}\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}}
}
{\ttfamily \#include $<$stdio.\-h$>$}\*
{\ttfamily \#include $<$inttypes.\-h$>$}\*
{\ttfamily \#include $<$stdint.\-h$>$}\*
{\ttfamily \#include $<$string.\-h$>$}\*
{\ttfamily \#include \char`\"{}udp\-\_\-ip.\-h\char`\"{}}\*
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{udp__ip_8h_ab58edbcc4430a271845b89de729801ef}{data\-Queuerfptr\-\_\-t} \hyperlink{udp__ip_8c_a8db7ae872f10e500517ad2659e68e2e9}{udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr} (void)
\item 
void \hyperlink{udp__ip_8c_a00515a5897f3ddd79fa61a2a11d76c2a}{udp\-\_\-initialize\-\_\-ip\-\_\-network} (uint8\-\_\-t $\ast$my\-Ip\-Address, \hyperlink{udp__ip_8h_ab58edbcc4430a271845b89de729801ef}{data\-Queuerfptr\-\_\-t} data\-Queuer)
\item 
uint8\-\_\-t $\ast$ \hyperlink{udp__ip_8c_ae578dbc69101e3ad11310361542e06f7}{udp\-\_\-get\-\_\-localhost\-\_\-ip} (uint8\-\_\-t $\ast$ip\-\_\-out)
\item 
uint16\-\_\-t \hyperlink{udp__ip_8c_aebb39892acf954f00898e9fd5b48459c}{udp\-\_\-create\-\_\-packet} (uint8\-\_\-t $\ast$src\-\_\-in, uint16\-\_\-t src\-\_\-port, uint8\-\_\-t $\ast$dst\-\_\-in, uint16\-\_\-t dst\-\_\-port, uint8\-\_\-t $\ast$payload\-\_\-in, uint16\-\_\-t payload\-\_\-length, uint8\-\_\-t $\ast$packet\-\_\-out)
\item 
uint8\-\_\-t \hyperlink{udp__ip_8c_aca91171b009a538423a3497be529394a}{udp\-\_\-check\-\_\-destination} (uint8\-\_\-t $\ast$my\-\_\-dst, uint8\-\_\-t $\ast$packet\-\_\-dst, uint8\-\_\-t $\ast$packet\-\_\-in)
\item 
uint16\-\_\-t \hyperlink{udp__ip_8c_a2b1756e579c45c495c7bc710a237a303}{udp\-\_\-open\-\_\-packet\-\_\-extended} (uint8\-\_\-t $\ast$src\-\_\-out, uint16\-\_\-t $\ast$src\-\_\-port\-\_\-out, uint8\-\_\-t $\ast$dst\-\_\-out, uint16\-\_\-t $\ast$dst\-\_\-port\-\_\-out, uint8\-\_\-t $\ast$payload\-\_\-out, uint8\-\_\-t $\ast$packet\-\_\-in, uint8\-\_\-t $\ast$flow\-\_\-label\-\_\-out, uint8\-\_\-t $\ast$hop\-\_\-limit\-\_\-out, uint8\-\_\-t $\ast$next\-\_\-header\-\_\-out, uint8\-\_\-t $\ast$version\-\_\-out, uint8\-\_\-t $\ast$priority\-\_\-out)
\item 
uint16\-\_\-t \hyperlink{udp__ip_8c_a57490bd6a0b898ce485250122011a6c0}{udp\-\_\-open\-\_\-packet} (uint8\-\_\-t $\ast$src\-\_\-out, uint16\-\_\-t $\ast$src\-\_\-port\-\_\-out, uint8\-\_\-t $\ast$dst\-\_\-out, uint16\-\_\-t $\ast$dst\-\_\-port\-\_\-out, uint8\-\_\-t $\ast$payload\-\_\-out, uint8\-\_\-t $\ast$packet\-\_\-in)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
const uint8\-\_\-t \hyperlink{udp__ip_8c_a2c5c25276be7248175f889ba45bf2e46}{udp\-\_\-braodcast\-\_\-address} \mbox{[}6\mbox{]} = \{0xff, 0xff, 0xff, 0xff, 0xff, 0xff\}
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{udp__ip_8c_aca91171b009a538423a3497be529394a}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-check\-\_\-destination@{udp\-\_\-check\-\_\-destination}}
\index{udp\-\_\-check\-\_\-destination@{udp\-\_\-check\-\_\-destination}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-check\-\_\-destination}]{\setlength{\rightskip}{0pt plus 5cm}uint8\-\_\-t {\bf udp\-\_\-check\-\_\-destination} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{my\-\_\-dst, }
\item[{uint8\-\_\-t $\ast$}]{packet\-\_\-dst, }
\item[{uint8\-\_\-t $\ast$}]{packet\-\_\-in}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_aca91171b009a538423a3497be529394a}
\hypertarget{udp__ip_8c_aebb39892acf954f00898e9fd5b48459c}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-create\-\_\-packet@{udp\-\_\-create\-\_\-packet}}
\index{udp\-\_\-create\-\_\-packet@{udp\-\_\-create\-\_\-packet}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-create\-\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}uint16\-\_\-t {\bf udp\-\_\-create\-\_\-packet} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{src\-\_\-in, }
\item[{uint16\-\_\-t}]{src\-\_\-port, }
\item[{uint8\-\_\-t $\ast$}]{dst\-\_\-in, }
\item[{uint16\-\_\-t}]{dst\-\_\-port, }
\item[{uint8\-\_\-t $\ast$}]{payload\-\_\-in, }
\item[{uint16\-\_\-t}]{payload\-\_\-length, }
\item[{uint8\-\_\-t $\ast$}]{packet\-\_\-out}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_aebb39892acf954f00898e9fd5b48459c}
\hypertarget{udp__ip_8c_a8db7ae872f10e500517ad2659e68e2e9}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr@{udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr}}
\index{udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr@{udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf data\-Queuerfptr\-\_\-t} {\bf udp\-\_\-get\-\_\-data\-\_\-queuer\-\_\-fptr} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_a8db7ae872f10e500517ad2659e68e2e9}
\hypertarget{udp__ip_8c_ae578dbc69101e3ad11310361542e06f7}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-get\-\_\-localhost\-\_\-ip@{udp\-\_\-get\-\_\-localhost\-\_\-ip}}
\index{udp\-\_\-get\-\_\-localhost\-\_\-ip@{udp\-\_\-get\-\_\-localhost\-\_\-ip}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-get\-\_\-localhost\-\_\-ip}]{\setlength{\rightskip}{0pt plus 5cm}uint8\-\_\-t$\ast$ {\bf udp\-\_\-get\-\_\-localhost\-\_\-ip} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{ip\-\_\-out}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_ae578dbc69101e3ad11310361542e06f7}
\hypertarget{udp__ip_8c_a00515a5897f3ddd79fa61a2a11d76c2a}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-initialize\-\_\-ip\-\_\-network@{udp\-\_\-initialize\-\_\-ip\-\_\-network}}
\index{udp\-\_\-initialize\-\_\-ip\-\_\-network@{udp\-\_\-initialize\-\_\-ip\-\_\-network}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-initialize\-\_\-ip\-\_\-network}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf udp\-\_\-initialize\-\_\-ip\-\_\-network} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{my\-Ip\-Address, }
\item[{{\bf data\-Queuerfptr\-\_\-t}}]{data\-Queuer}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_a00515a5897f3ddd79fa61a2a11d76c2a}
\hypertarget{udp__ip_8c_a57490bd6a0b898ce485250122011a6c0}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-open\-\_\-packet@{udp\-\_\-open\-\_\-packet}}
\index{udp\-\_\-open\-\_\-packet@{udp\-\_\-open\-\_\-packet}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-open\-\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}uint16\-\_\-t {\bf udp\-\_\-open\-\_\-packet} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{src\-\_\-out, }
\item[{uint16\-\_\-t $\ast$}]{src\-\_\-port\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{dst\-\_\-out, }
\item[{uint16\-\_\-t $\ast$}]{dst\-\_\-port\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{payload\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{packet\-\_\-in}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_a57490bd6a0b898ce485250122011a6c0}
\hypertarget{udp__ip_8c_a2b1756e579c45c495c7bc710a237a303}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-open\-\_\-packet\-\_\-extended@{udp\-\_\-open\-\_\-packet\-\_\-extended}}
\index{udp\-\_\-open\-\_\-packet\-\_\-extended@{udp\-\_\-open\-\_\-packet\-\_\-extended}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-open\-\_\-packet\-\_\-extended}]{\setlength{\rightskip}{0pt plus 5cm}uint16\-\_\-t {\bf udp\-\_\-open\-\_\-packet\-\_\-extended} (
\begin{DoxyParamCaption}
\item[{uint8\-\_\-t $\ast$}]{src\-\_\-out, }
\item[{uint16\-\_\-t $\ast$}]{src\-\_\-port\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{dst\-\_\-out, }
\item[{uint16\-\_\-t $\ast$}]{dst\-\_\-port\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{payload\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{packet\-\_\-in, }
\item[{uint8\-\_\-t $\ast$}]{flow\-\_\-label\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{hop\-\_\-limit\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{next\-\_\-header\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{version\-\_\-out, }
\item[{uint8\-\_\-t $\ast$}]{priority\-\_\-out}
\end{DoxyParamCaption}
)}}\label{udp__ip_8c_a2b1756e579c45c495c7bc710a237a303}


\subsection{\-Variable \-Documentation}
\hypertarget{udp__ip_8c_a2c5c25276be7248175f889ba45bf2e46}{\index{udp\-\_\-ip.\-c@{udp\-\_\-ip.\-c}!udp\-\_\-braodcast\-\_\-address@{udp\-\_\-braodcast\-\_\-address}}
\index{udp\-\_\-braodcast\-\_\-address@{udp\-\_\-braodcast\-\_\-address}!udp_ip.c@{udp\-\_\-ip.\-c}}
\subsubsection[{udp\-\_\-braodcast\-\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}const uint8\-\_\-t {\bf udp\-\_\-braodcast\-\_\-address}\mbox{[}6\mbox{]} = \{0xff, 0xff, 0xff, 0xff, 0xff, 0xff\}}}\label{udp__ip_8c_a2c5c25276be7248175f889ba45bf2e46}
